{extend name='public/modal'}
{block name='content'}

<div class="layui-fluid lotus-form">
    <div class="layui-row">
        <form action="add.html" class="layui-form layui-form-pane" id="lotus-add-form" method="post">

            <input name="shipline_id" type="hidden" value="{$shipteyue.shipline_id}" />

            <div class="layui-form-item">
                <label class="layui-form-label">城市</label>
                <div class="layui-input-inline" style="width: 44%;">
                    <input autocomplete="off" class="layui-input" id="FromCityName" name="from_city_name"
                        placeholder="请填写出发城市" type="text" value="{$shipteyue.from_city_name}">
                </div>
                <div class="layui-input-inline" style="width: 44%;">
                    <input autocomplete="off" class="layui-input" id="ToCityName" name="ToCityName"
                        placeholder="请填写目标城市" type="text" value="{$shipteyue.ToCityName}">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="toSubmit" lay-submit="" style="margin-left: 20%">提交</button>
                    <button class="layui-btn layui-btn-primary" id="reset" type="reset">重置</button>
                </div>
            </div>

        </form>
    </div>
</div>


<script>

    layui.use(['laydate', 'form', 'upload', 'layer', 'jquery'], function () {
        var laydate = layui.laydate
            , upload = layui.upload
            , layer = layui.layer
            , $ = layui.jquery
            , form = layui.form;
        form.render();

        laydate.render({
            elem: '#start_time' //指定元素
            , type: 'time'
        });

        laydate.render({
            elem: '#end_time' //指定元素
            , type: 'time'
        });

        laydate.render({
            elem: '#start_date' //指定元素
            , type: 'date'
        });

        laydate.render({
            elem: '#end_date' //指定元素
            , type: 'date'
        });

        form.on('submit(*)', function (data) {
            console.log(data.field) //当前容器的全部表单字段，名值对形式：{name: value}
            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });


    });
</script>

{/block}